import request from '@/utils/request'

// 查询救援类型列表
export function listRescueType(query) {
  return request({
    url: '/merchant/rescueType/list',
    method: 'get',
    params: query
  })
}

// 查询救援类型详细
export function getRescueType(id) {
  return request({
    url: '/merchant/rescueType/' + id,
    method: 'get'
  })
}

// 新增救援类型
export function addRescueType(data) {
  return request({
    url: '/merchant/rescueType',
    method: 'post',
    data: data
  })
}

// 修改救援类型
export function updateRescueType(data) {
  return request({
    url: '/merchant/rescueType',
    method: 'put',
    data: data
  })
}

// 删除救援类型
export function delRescueType(id) {
  return request({
    url: '/merchant/rescueType/' + id,
    method: 'delete'
  })
}
